package com.lys.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lys.eduservice.entity.EduTeacher;
import com.lys.eduservice.entity.frontvo.CourseQueryVo;
import com.lys.eduservice.entity.frontvo.CourseWebVo;
import com.lys.eduservice.entity.vo.CoursePublishVo;
import com.lys.eduservice.entity.vo.CourseQuery;
import com.lys.eduservice.entity.vo.SaveCourseVo;
import com.lys.eduservice.entity.vo.TeacherQueryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Lyyyys
 * @since 2021-04-30
 */
public interface EduCourseService extends IService<EduCourse> {
    /**
     * 保存课程和课程详情信息
     * @param courseVo
     * @return
     */
    String saveCourseInfo(SaveCourseVo courseVo);

    CoursePublishVo getCoursePublishVoByCourseId(String id);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    boolean removeCourseById(String id);

    List<EduCourse> getHotCourseLimit();

    List<EduCourse> selectByTeacherId(String teacherId);

    Map<String, Object> pageListWeb(Page<EduCourse> pageParam, CourseQueryVo courseQuery);

    CourseWebVo getBaseCourseInfo(String courseId);
}
